<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>评审对象管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>

  <div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
      <a lay-href="">会议中心</a>
      <a><cite>学位会议管理</cite></a>
      <a><cite>评审对象管理</cite></a>
    </div>
  </div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">评审对象管理</div>
          <div class="layui-card-body">
          
            <div class="degObjMng-btn" style="margin-bottom: 10px;">
              <button class="layui-btn" data-type="btnAdd">导入（工作流时隐去）</button>
            </div>
             
            <table class="layui-hide" id="degObjMng-table" lay-filter="degObjMng-table"></table> 
            
            <script type="text/html" id="degObjMng-table-operate-barDemo">
              <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">审核</a>
            </script>
          </div>
        </div>
      </div>
    </div>
  </div>

	<script src="../../../layuiadmin/layui/layui.js"></script> 
	<script>
	layui.config({
	  base: '../../../layuiadmin/' //静态资源所在路径
	}).extend({
	  index: 'lib/index' //主入口模块
	}).use(['index', 'table', 'form'], function(){
	  var table = layui.table
	  ,admin = layui.admin
	  ,layer = layui.layer;

	  table.render({
	    elem: '#degObjMng-table'
	    ,url: layui.setter.base + 'json/table/user.js'
	    ,cellMinWidth: 80
	    ,id: 'ID'
	    ,cols: [[
	      {type:'checkbox', fixed: 'left'}
	      ,{field:'username', title: '姓名'}
	      ,{field:'sex', title: '学院', sort: true}
        ,{field:'sign', title: '学位'}
        ,{field:'experience', title: '导师', sort: true}
        ,{field:'experience', title: '状态', sort: true}
	      ,{width:178, align:'center', fixed: 'right', toolbar: '#degObjMng-table-operate-barDemo'}
	    ]]
	    ,page: true
	  });
	  
	  //监听表格复选框选择
	  table.on('checkbox(degObjMng-table)', function(obj){
	    console.log(obj)
	  });
	  //监听工具条
	  table.on('tool(degObjMng-table)', function(obj){
	    var data = obj.data;
	    if(obj.event === 'del'){
	      layer.confirm('真的删除行么', function(index){
	        obj.del();
	        layer.close(index);
	      });
	    }
	  });

		var $ = layui.$, active = {
			btnAdd : function() {
			}
		};
	  
	  $('.degObjMng-btn .layui-btn').on('click', function(){
	    var type = $(this).data('type');
	    active[type] ? active[type].call(this) : '';
	  });

	});
	</script> 
</body>
</html>